package com.powergisol.gis.controller;

import com.powergisol.gis.service.TabWallService;
import com.powergisol.gis.util.Result;
import com.powergisol.gis.vo.TabUserVo;
import com.powergisol.gis.vo.TabWall1VO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.security.Principal;

/**
 * Created By marc
 * Date: 2020/11/20  10:34
 * Description:剪力墙柱
 */
@RestController
@RequestMapping("/wall")
@Api(description = "剪力墙柱" ,value = "剪力墙柱")
public class TabWallController extends BaseController{

    @Autowired
    private TabWallService tabWallService;

    @PostMapping("/wallImport")
    public Result wallImport(MultipartFile excelFile, TabWall1VO vo, Principal p){
        TabUserVo user = getUser(p);
        return tabWallService.wall1Import(excelFile,vo,user);
    }
}
